Automattic\Jetpack_Boost\Modules\Critical_CSS\Critical_CSS B

Total Complexity 98
Dependencies 10
Dependents 1
Total lines 974
Lines of code 483
Logical lines of code 219
Comment lines 315
Methods 33
Properties 5

Methods 33

Method Rating Maintainability Complexity Lines of code
generate_error_handler()
A
41 9 68
generate_success_handler()
A
45 6 49
on_initialize()
S
50 7 27
handle_css_proxy()
S
53 7 22
dismiss_recommendations()
S
52 6 23
is_generating_critical_css()
S
55 6 21
get_critical_css_status()
S
49 4 34
asynchronize_stylesheets()
S
55 5 19
get_current_request_css_keys()
S
59 4 15
display_critical_css()
S
62 4 12
critical_css_request_generate_handler()
S
57 3 17
reset_dismissed_recommendations()
S
60 3 13
get_critical_css()
S
62 3 12
register_rest_routes()
S
49 1 41
find_provider_for()
S
68 3 8
should_display_critical_css()
S
67 3 9
is_ready_filter()
S
64 3 10
ensure_module_initialized()
S
73 2 5
get_admin_notices()
S
69 2 7
describe_provider_key()
S
69 2 7
current_user_can_modify_critical_css()
S
79 2 3
force_logged_out_render()
S
68 2 7
clear_dismissed_recommendations()
S
80 1 3
clear_reset_reason()
S
80 1 3
__construct()
S
75 1 4
onload_flip_stylesheets()
S
77 1 9
api_get_critical_css_status()
S
80 1 3
get_local_critical_css_generation_info()
S
64 1 10
add_critical_css_constants()
S
72 1 5
always_add_critical_css_constants()
S
75 1 4
display_generate_meta()
S
83 1 5
on_uninstall()
S
78 1 4
clear_critical_css()
S
78 1 4